package com.hoshiicloud.vericenter.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 表述系统平台功能
 * </p>
 *
 * @author Mr.Wu
 * @since 2019-05-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SysMessages对象", description = "表述系统平台功能")
public class SysMessages extends Model<SysMessages> {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "手机号码")
    private String mobile;

    @ApiModelProperty(value = "消息内容")
    private String context;

    @ApiModelProperty(value = "动态码")
    private String randCode;

    @ApiModelProperty(value = "类别  1- 验证类  2-通知类")
    private Integer type;

    @ApiModelProperty(value = "发送时间")
    private LocalDateTime sentTime;

    @ApiModelProperty(value = "失效时间")
    private LocalDateTime expiresTime;

    @ApiModelProperty(value = "是否有效  0-失效 1-有效")
    private Integer available;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
